<?php

class User_Model_Relationship
{
	protected $_id = NULL;
	protected $_firstUserId = NULL;
	protected $_secondUserId = NULL;
	protected $_type = NULL;
	protected $_approveFlag = FALSE;


	public function setId($id)
	{
		$this->_id = $id;
		return $this;
	}
	public function setFirstUserId($accountId)
	{
		$this->_firstUserId = $accountId;
		return $this;
	}
	public function setSecondUserId($accountId)
	{
		$this->_secondUserId = $accountId;
		return $this;
	}
	public function setType($type)
	{
		$this->_type = $type;
		return $this;
	}
	public function setApproveFlag($approved = TRUE)
	{
		$this->_approveFlag = (bool)$approved;
		return $this;
	}


	public function getId()
	{
		return $this->_id;
	}
	public function getFirstUserId()
	{
		return $this->_firstUserId;
	}
	public function getSecondUserId()
	{
		return $this->_secondUserId;
	}
	public function getType()
	{
		return $this->_type;
	}
	public function getApproveFlag()
	{
		return $this->_approveFlag;
	}



    public function __set($name, $value)
    {
        $method = 'set' . ucfirst($name);
        $this->$method($value);
    }
    public function __get($name)
    {
        $method = 'get' . ucfirst($name);
        return $this->$method();
    }
}
